package org.wzh.spring.di.demoa;

import java.util.List;

import org.wzh.spring.di.demo1.CompactDisc;

public class BlankDisc3 implements CompactDisc {

	private String title;
	private String artist;
	private List<CompactDisc> cds;

	public BlankDisc3(String title, String artist, List<CompactDisc> cds) {
		this.title = title;
		this.artist = artist;
		this.cds = cds;
	}

	@Override
	public void play() {
		System.out.println("Playing " + title + " by " + artist);
		for (CompactDisc cd : cds) {
			System.out.print("-cd : ");
			cd.play();
			System.out.println();
		}
	}

}
